#include<string.h>
#include<stdio.h>
int main()
{
    //freopen("in.txt","r",stdin);
    char s[100];
    scanf("%s",s);
    int i = strlen(s);
    for(i = i-1;i >= 0;i--)
    {
        printf("%c",s[i]);
    }
}